<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"/>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<div class="ui grid">
    <div class="row">
        <div class="column">
            <div class="ui two column grid">
                <div class="three wide column">
                    <jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
                        <jsp:param name="index" value="401"/>
                    </jsp:include>
                </div>
                <div id="container" class="thirteen wide column">
                    <ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li class="active">问题管理</li>
					</ol>
                    <ul class="nav nav-pills" role="tablist">
                        <li role="presentation" class="active"><a href="/question/add">录入题目</a></li>
                    </ul>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>题目ID</th>
                            <th>题目类型</th>
                            <th width="50%">题目名称</th>
                            <th>答案数</th>
                            <th>创建时间</th>
                            <th>创建人</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${paginate.pageList}" var="question">
                            <tr>
                                <td>${question.id}</td>
                                <td>${question.typeStr}</td>
                                <td><a href="/question/${question.id}/details" target="_blank">${question.questionContent}</a></td>
                                <td>${question.count}</td>
                                <td><fmt:formatDate value="${question.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                                <td>${question.creater}</td>
                                <td>
                                    <a href="/question/${question.id}/edit" target="_blank">编辑</a>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div class="page-info clearfix">
                         <jsp:include page="/WEB-INF/jsp/common/_page.jsp"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
